<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ProTypeList.aspx.cs" Inherits="admin_Corp_ProType_ProTypeList" %>

<%@ Register Src="../../../Control/PageNo.ascx" TagName="PageNo" TagPrefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>帮助信息分类管理</title>
    <link rel="stylesheet" href="../../skin/style.css" type="text/css" />

    <script type="text/javascript" src="../../../js/jquery.js"></script>

</head>
<body>
    <form id="form1" runat="server">
        <div class="talbe_border marie">
            <div class="head_ling">
                产品分类管理</div>
            <asp:DataList ID="dlstProType" runat="server" DataKeyField="ID" OnCancelCommand="dlstProType_CancelCommand"
                OnDeleteCommand="dlstProType_DeleteCommand" OnEditCommand="dlstProType_EditCommand"
                OnUpdateCommand="dlstProType_UpdateCommand" RepeatColumns="3" CellPadding="0"
                Width="100%" CssClass="talbe_list">
                <HeaderStyle CssClass="noya" />
                <HeaderTemplate>
                    <tr onmouseover="this.style.backgroundColor='#F0F7FD'" onmouseout="this.style.backgroundColor=''">
                        <td>
                            选项
                        </td>
                        <td>
                            产品分类名称
                        </td>
                        <td>
                            会员名称
                        </td>
                        <td>
                            发布时间
                        </td>
                        <td>
                            操作选项
                        </td>
                    </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr onmouseover="this.style.backgroundColor='#F0F7FD'" onmouseout="this.style.backgroundColor=''">
                        <td>
                            <asp:CheckBox ID="CheckBox1" runat="server" />
                        </td>
                        <td>
                            <%# DataBinder.Eval(Container.DataItem, "Name")%>
                        </td>
                        <td>
                            <%# DataBinder.Eval(Container.DataItem, "LoginName")%>
                        </td>
                        <td>
                            <%# DataBinder.Eval(Container.DataItem, "AddDate")%>
                        </td>
                        <td>
                            <asp:LinkButton ID="lbtnEdit" runat="server" CommandName="edit">编辑</asp:LinkButton>|
                            <asp:LinkButton ID="lbtnDelete" runat="server" CommandName="delete" OnClientClick="return confirm('你确定要删除吗?')"
                                Text="删除"></asp:LinkButton>
                        </td>
                    </tr>
                </ItemTemplate>
                <EditItemTemplate>
                    <tr>
                        <td>
                            <asp:CheckBox ID="CheckBox1" runat="server" />
                        </td>
                        <td>
                            <asp:TextBox ID="txtName" runat="server" Text='<%# Eval("Name")%>' Width="80"></asp:TextBox>
                        </td>
                        <td>
                            <%# DataBinder.Eval(Container.DataItem, "LoginName")%>
                        </td>
                        <td>
                            <%# DataBinder.Eval(Container.DataItem, "AddDate")%>
                        </td>
                        <td>
                            <asp:LinkButton ID="LinkButton1" runat="server" CommandName="update">更新</asp:LinkButton>
                            <asp:LinkButton ID="LinkButton2" runat="server" CommandName="cancel">取消</asp:LinkButton>
                        </td>
                    </tr>
                </EditItemTemplate>
            </asp:DataList>
            <div class="Paging">
                <p>
                   <uc1:PageNo ID="PageNo1" runat="server" />
                </p>
                <input id="CheckBox2" name="CheckBox2" onclick="SelectAll();" type="checkbox" />全选
                <asp:Button ID="btnDelete" runat="server" OnClick="btnDelete_Click" Text="批量删除" CssClass="i_button" />
                
            </div>
        </div>
    </form>
</body>
</html>
